<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><!--Head--><head>
    <meta charset="utf-8">
    <title>百信投资有限公司--后台管理登录</title>
    <meta name="description" content="login page">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" href="__PUBLIC__/Admin/images/favicon1.ico">
    <!--Basic Styles-->
    <link href="__PUBLIC__/Admin/style/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/font-awesome.css" rel="stylesheet">
    <!--Beyond styles-->
    <link id="beyond-link" href="__PUBLIC__/Admin/style/beyond.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/demo.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/animate.css" rel="stylesheet">
</head>
<!--Head Ends-->
<!--Body-->

<body>
    <div class="login-container animated fadeInDown">
        <form action="__MODULE__/Public/login" method="post">
            <div class="loginbox bg-white">
                <div class="loginbox-title">SIGN IN</div>
                <div class="loginbox-textbox">
                    <input  class="form-control" placeholder="account" name="account" type="text">
                </div>
                <div class="loginbox-textbox">
                    <input class="form-control" placeholder="password" name="password" type="password">
                </div>
                <div class="loginbox-submit">
                    <input class="btn btn-primary btn-block" value="Login" type="submit">
                </div>
            </div>
                <div class="logobox">
                    <p class="text-center" style="line-height:40px">请输入正确的后台管理账号和密码</p>
                </div>
        </form>
    </div>
    <!--Basic Scripts-->
    <script src="__PUBLIC__/Admin/style/jquery.js"></script>
    <script src="__PUBLIC__/Admin/style/bootstrap.js"></script>
    <script src="__PUBLIC__/Admin/style/jquery_002.js"></script>
    <!--Beyond Scripts-->
    <script src="__PUBLIC__/Admin/style/beyond.js"></script>
</body><!--Body Ends--></html>

<script>
    $(document).ready(function(){
        $('input[type=submit]').click(function(event){
            var account = $('input[name=account]').val();
            var password = $('input[name=password]').val();
            $.post('__MODULE__/Public/login',{account : account, password : password},function(result){
                   if (result == 'true') {
                       window.location.href = '__MODULE__/Index/index';
                   } else {
                       data = '<span style="color:red">'+result+'</span>';
                       $('.logobox').find('p').html(data);
                   }
            });
            event.preventDefault();
        });
    });
</script>